package com.hgyc.mom.base.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;

import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.EQ;
import com.hgyc.mom.core.mybatis.Like;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 客户
 * </p>
 *
 * @author fwj
 * @since 2025-05-15
 */
@Data
@TableName("base_client")
@Schema(name="客户对象", description="客户对象")
public class Client implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "客户ID")
    private Long id;

    @Excel(name = "客户编码")
    @EQ
    @Schema(description = "客户编码")
    private String clientCode;

    @Excel(name = "客户名称")
    @EQ
    @Schema(description = "客户名称")
    private String clientName;

    @Excel(name = "客户简称")
    @Schema(description = "客户简称")
    private String clientNick;

    @Excel(name = "客户英文名称")
    @Schema(description = "客户英文名称")
    private String clientEn;

    @Excel(name = "客户简介")
    @Schema(description = "客户简介")
    private String clientDes;

    @Excel(name = "客户类型")
    @EQ
    @Schema(description = "客户类型")
    private String clientType;

    @Schema(description = "客户地址")
    private String address;

    @Schema(description = "客户官网地址")
    private String website;

    @Schema(description = "客户邮箱地址")
    private String email;

    @Excel(name = "客户电话")
    @Schema(description = "客户电话")
    private String tel;

    @Excel(name = "联系人")
    @Schema(description = "联系人")
    private String contact;

    @Schema(description = "联系人-电话")
    private String contactTel;

    @Schema(description = "联系人-邮箱")
    private String contactEmail;

    @Schema(description = "统一社会信用代码")
    private String creditCode;

    @Excel(name = "是否启用")
    @EQ
    @Schema(description = "是否启用")
    private String status;

    @Schema(description = "备注")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}